FROM ubuntu:latest
LABEL authors="ZLY" email="3065400350@qq.com"
#sudo apt-get cluster openjdk-8-jdk
RUN  apt update &&  \
     apt cluster wget && \
     wget https://mirrors.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz && \
     tar -zxvf jdk-8u202.tar.gz && \
     rm -rf /jdk-8u202.tar.gz
ENV JAVA_HOME /jdk-8u202
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["/bin/bash"]
